YAHOO.namespace("CSW2.yuitest");

// Test Cases 
YAHOO.CSW2.yuitest.configuration_1 = new YAHOO.tool.TestCase({
 
    name: "configuration_1",
 
    setUp : function () {
    },
 
    tearDown : function () { 
    },

    test_configuration_load : function () {
		CWN2.configuration.name = null;
		CWN2.configuration.load('config/test.json');
		YAHOO.util.Assert.isNotNull(CWN2.configuration.name, "Nome non deve essere null");
    },
	
    test_configuration_getLayerConfigByName : function () {
		var layerName = "Google Stradario";
		var layerConfig = CWN2.configuration.getLayerConfigByName(layerName);
		YAHOO.util.Assert.areEqual(layerConfig.name, "Google Stradario", "Nome layer dovrebbe essere 'Google Stradario'");
    }
 
 
 });
 
 // Test Suite
YAHOO.CSW2.yuitest.configuration_suite = new YAHOO.tool.TestSuite("configuration Test Suite"); 
YAHOO.CSW2.yuitest.configuration_suite.add(YAHOO.CSW2.yuitest.configuration_1); 
 
